circular linked list in javascript